package org.xlin.biz.controller.normal;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class PageJumpController {
	
	/**
	 * 首页
	 * @return
	 */
	@RequestMapping(method=RequestMethod.GET)
	public ModelAndView page2IndexPage(){
		return new ModelAndView("redirect:page/menu");
	}
	
	/**
	 * 菜单管理管理页
	 * @return
	 */
	@RequestMapping(value="/page/menu", method=RequestMethod.GET)
	public ModelAndView page2MenuPage(){
		return new ModelAndView("menu/manager");
	}
	
	/**
	 * 桌位管理页
	 * @return
	 */
	@RequestMapping(value="/page/table", method=RequestMethod.GET)
	public ModelAndView page2TablePage(){
		return new ModelAndView("table/manager");
	}
	
	/**
	 * 就餐管理页
	 * @return
	 */
	@RequestMapping(value="/page/repast", method=RequestMethod.GET)
	public ModelAndView page2RepastPage(){
		return new ModelAndView("repast/manager");
	}
	
	/**
	 * 就餐记录页
	 * @return
	 */
	@RequestMapping(value="/page/repast/list", method=RequestMethod.GET)
	public ModelAndView page2RepastListPage(){
		return new ModelAndView("repast/list");
	}
	
	/**
	 * 需处理菜单页
	 * @return
	 */
	@RequestMapping(value="/page/repast/todo", method=RequestMethod.GET)
	public ModelAndView page2RepastTodoPage(){
		return new ModelAndView("repast/todo");
	}
	
}
